<?php
class Upload extends AppModel{
	var $name = "Upload";
	var $hasMany = array(
			'Detail'=> array(
				'className' =>'Detail',
				'foreignKey' =>'upload_id',
				'conditions' => array('Detail.isupload'=>'0')				
			)
		);
}
?>